function observations = mixedUlt( letterImg, slices )
    
    %Resize the image to include slices columns as each slice will be 1
    %pixel
    croppedLI = imresize(letterImg, [NaN slices]);
    %There might be a slight problem with this approach if we don't do duplicate
    %check and figure title's clash with each other. 
    %fh = figure('Name',['mixedUlt - Slices : ' num2str(slices)]);
    %Execution i hizlandirmak icin figurleri gecici olarak kaldiriyorum
    
    %fh = figure(slices);
    for i = 1 : slices
        slice = croppedLI(:,i);
        %subplot(1,slices, i, 'Parent', fh);
        %imshow(slice);
        %Count of black pixels in the slice 
        nbp = sum(sum(1-slice));
        observations(i,1) = nbp;
        %Count the number of vertical transitions from white to black or
        %vice versa.
        bwTransition = 0;
        for j = 1 : size(slice,1) - 1
            if slice(j) ~= slice(j+1)
                bwTransition = bwTransition + 1;
            end
        end
        observations(i,2) = bwTransition;
    end
end

